<!DOCTYPE html>
<style>
    .img { display: table; }
</style>
<body>
    <img id="first" data-expected-width=0>
    <img id="second" class="img">
    crbug.com/553048: Don't attempt to collapse anonymous children when destroying them.
</body>
<script src="../../resources/check-layout.js"></script>
<script>
    document.body.offsetTop;
    document.getElementById("second").style.position = "fixed";
    document.body.offsetTop;
    document.getElementById("second").style.display = "inline-block";
    window.checkLayout("#first");
</script>
